package com.oop;

import com.oop.Demo05.Person;
import com.oop.Demo05.Student;
/*
    1、提高程序的安全性，保护数据
    2、隐藏代码的实现细节
    3、统一接口
    4、增加了系统可维护性
 */
public class Application {
    public static void main(String[] args) {
//        Student s1 = new Student();
//
//        s1.setName("小明");
//        System.out.println(s1.getName());
//
//        s1.setAge(35);
//        System.out.println(s1.getAge());
//        Person person = new Person();
//        person.

        Student student = new Student();
        student.say();
        student.setMoney(10_0000_0000);
        System.out.println(student.getMoney());
    }
}
